package com.github.baichuan.application.scaffold.domain.organization;

import com.github.baichuan.application.scaffold.domain.application.Application;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;

/**
 * 租户
 */
@Entity
@Getter
@Setter
public class Tenant {
    @Id
    private String id;

    @ManyToOne
    @JoinColumn(name = "application_id")
    private Application application;

    private String name;
}
